home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #1 / Amiga Plus CD - 2000 - No. 1.iso / Tools / Dev / Sas-PPC / install < prev    next >
Encoding:
Text File  |  1999-12-03  |  13.0 KB  |  329 lines

  1. .bra [
  2. .ket ]
  3.  
  4. echo ""
  5. echo "This script will create a PowerPC version of the"
  6. echo "SAS/C Development System. You should have SAS/C"
  7. echo "6.5x installed on your machine before running this"
  8. echo "script. This process will not affect the 68k compiler."
  9. echo ""
  10. echo "Please read the read.me file for details and limitations"
  11. echo "of the PowerPC compiler."
  12. echo ""
  13. ask "Continue with patch?"
  14.  
  15. if warn
  16.  
  17. echo Creating SCPPC
  18. decompress SASC_6.50_Disk_1:Compiler/c_files t: sc
  19. spatch -osc:c/scppc -pscppc.pch t:sc
  20. delete t:sc quiet
  21.  
  22. echo Creating SLINKPPC
  23. decompress SASC_6.50_Disk_1:Compiler/c_files t: slink
  24. spatch -osc:c/slinkppc -pslink.pch t:slink
  25. delete t:sc quiet
  26.  
  27. echo Creating SC2PPC.LIBRARY
  28. decompress SASC_6.50_Disk_1:Compiler/libs_files t: sc2.library
  29. spatch -osc:libs/sc2ppc.library -psc2ppc.pch t:sc2.library
  30. delete t:sc2.library quiet
  31.  
  32. echo Creating SC2PPCH.LIBRARY
  33. decompress SASC_6.50_Disk_1:Compiler/libs_files t: sc2.library
  34. spatch -osc:libs/sc2ppch.library -psc2ppch.pch t:sc2.library
  35. delete t:sc2.library quiet
  36.  
  37. echo Creating SC1PPC.LIBRARY
  38. decompress SASC_6.50_Disk_1:Compiler/libs_files t: sc1.library
  39. spatch -osc:libs/sc1ppc.library -psc1ppc.pch t:sc1.library
  40. delete t:sc1.library quiet
  41.  
  42. echo Creating SCDEBUGPPC.LIBRARY
  43. decompress SASC_6.50_Disk_1:Compiler/libs_files t: scdebug.library
  44. spatch -osc:libs/scdebugppc.library -pscdebugppc.pch t:scdebug.library
  45. delete t:scdebug.library quiet
  46.  
  47.  
  48. echo Creating C Runtime Library
  49. decompress SASC_6.50_Disk_1:Compiler/c_files t: sc
  50. spatch -osc:lib/scppc.a -pscppc_lib.pch t:sc
  51. delete t:sc
  52.  
  53. echo Creating C Runtime Library (hunk version)
  54. decompress SASC_6.50_Disk_1:Compiler/c_files t: sc
  55. spatch -osc:lib/scppc.lib -pscppc_libh.pch t:sc
  56. delete t:sc
  57.  
  58. echo Creating C++ Runtime Library
  59. decompress SASC_6.50_Disk_1:Compiler/c_files t: sc
  60. spatch -osc:lib/sccxxppc.a -psccxxppc_lib.pch t:sc
  61. delete t:sc
  62.  
  63. echo Creating C++ Runtime Library (hunk version)
  64. decompress SASC_6.50_Disk_1:Compiler/c_files t: sc
  65. spatch -osc:lib/sccxxppc.lib -psccxxppc_libh.pch t:sc
  66. delete t:sc
  67.  
  68.  
  69. echo Creating SCGOPPC.LIBRARY
  70. decompress SASC_6.50_Disk_3:optimizers/libs_files t: scgo.library
  71. spatch -osc:libs/scgoppc.library -pscgoppc.pch t:scgo.library
  72. delete t:scgo.library quiet
  73.  
  74. echo Creating SCPEEPPPC.LIBRARY
  75. decompress SASC_6.50_Disk_3:optimizers/libs_files t: scpeep.library
  76. spatch -osc:libs/scpeepppc.library -pscpeepppc.pch t:scpeep.library
  77. delete t:scpeep.library quiet
  78.  
  79.  
  80. echo Creating SCCXXPPC.LIBRARY
  81. decompress SASC_6.50_Disk_3:C_PLUS_PLUS/libs_files t: sccxx.library
  82. spatch -osc:libs/sccxxppc.library -psccxxppc.pch t:sccxx.library
  83. delete t:sccxx.library quiet
  84.  
  85.  
  86. echo Creating CPRPPC
  87. decompress SASC_6.50_Disk_4:Debugger/c_files t: cpr
  88. spatch -osc:c/cprppc -pcprppc.pch t:cpr
  89. delete t:cpr quiet
  90.  
  91. echo Creating SCHIPPC.LIBRARY
  92. decompress SASC_6.50_Disk_4:Debugger/libs_files t: schi.library
  93. spatch -osc:libs/schippc.library -pschippc.pch t:schi.library
  94. delete t:schi.library quiet
  95.  
  96.  
  97. copy examples/runelf sc:c/runelf
  98.  
  99. echo Adding PPC style varargs macros to stdarg.h
  100. decompress SASC_6.50_Disk_2:compiler/include_files t: stdarg.h
  101. spatch -osc:include/stdarg.h -pstdarg.pch t:stdarg.h
  102. delete t:stdarg.h quiet
  103.  
  104. decompress SASC_6.50_Disk_2:compiler/include_files t: setjmp.h
  105. spatch -osc:include/setjmp.h -psetjmp.pch t:setjmp.h
  106. delete t:setjmp.h quiet
  107.  
  108. decompress SASC_6.50_Disk_2:compiler/include_files t: stdio.h
  109. spatch -osc:include/stdio.h -pstdio.pch t:stdio.h
  110. delete t:stdio.h quiet
  111.  
  112.  
  113. decompress SASC_6.50_Disk_2:compiler/include/sys_files t: commlist.h
  114. spatch -osc:include/sys/commlist.h -pcommlist.pch t:commlist.h
  115. delete t:commlist.h quiet
  116.  
  117.  
  118. decompress SASC_6.50_Disk_2:compiler/include/proto_files t: exec.h
  119. spatch -pexec.pch -osc:include/proto/exec.h t:exec.h 
  120. delete t:exec.h
  121.  
  122. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: amigaguide_pragmas.h
  123. spatch -pamigaguide_pragmas.pch -osc:include/pragmas/amigaguide_pragmas.h t:amigaguide_pragmas.h 
  124. delete t:amigaguide_pragmas.h
  125.  
  126. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: asl_pragmas.h
  127. spatch -pasl_pragmas.pch -osc:include/pragmas/asl_pragmas.h t:asl_pragmas.h 
  128. delete t:asl_pragmas.h
  129.  
  130. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: battclock_pragmas.h
  131. spatch -pbattclock_pragmas.pch -osc:include/pragmas/battclock_pragmas.h t:battclock_pragmas.h 
  132. delete t:battclock_pragmas.h
  133.  
  134. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: battmem_pragmas.h
  135. spatch -pbattmem_pragmas.pch -osc:include/pragmas/battmem_pragmas.h t:battmem_pragmas.h 
  136. delete t:battmem_pragmas.h
  137.  
  138. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: bullet_pragmas.h
  139. spatch -pbullet_pragmas.pch -osc:include/pragmas/bullet_pragmas.h t:bullet_pragmas.h 
  140. delete t:bullet_pragmas.h
  141.  
  142. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: cardres_pragmas.h
  143. spatch -pcardres_pragmas.pch -osc:include/pragmas/cardres_pragmas.h t:cardres_pragmas.h 
  144. delete t:cardres_pragmas.h
  145.  
  146. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: cia_pragmas.h
  147. spatch -pcia_pragmas.pch -osc:include/pragmas/cia_pragmas.h t:cia_pragmas.h 
  148. delete t:cia_pragmas.h
  149.  
  150. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: colorwheel_pragmas.h
  151. spatch -pcolorwheel_pragmas.pch -osc:include/pragmas/colorwheel_pragmas.h t:colorwheel_pragmas.h 
  152. delete t:colorwheel_pragmas.h
  153.  
  154. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: commodities_pragmas.h
  155. spatch -pcommodities_pragmas.pch -osc:include/pragmas/commodities_pragmas.h t:commodities_pragmas.h 
  156. delete t:commodities_pragmas.h
  157.  
  158. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: console_pragmas.h
  159. spatch -pconsole_pragmas.pch -osc:include/pragmas/console_pragmas.h t:console_pragmas.h 
  160. delete t:console_pragmas.h
  161.  
  162. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: datatypes_pragmas.h
  163. spatch -pdatatypes_pragmas.pch -osc:include/pragmas/datatypes_pragmas.h t:datatypes_pragmas.h 
  164. delete t:datatypes_pragmas.h
  165.  
  166. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: disk_pragmas.h
  167. spatch -pdisk_pragmas.pch -osc:include/pragmas/disk_pragmas.h t:disk_pragmas.h 
  168. delete t:disk_pragmas.h
  169.  
  170. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: diskfont_pragmas.h
  171. spatch -pdiskfont_pragmas.pch -osc:include/pragmas/diskfont_pragmas.h t:diskfont_pragmas.h 
  172. delete t:diskfont_pragmas.h
  173.  
  174. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: dos_pragmas.h
  175. spatch -pdos_pragmas.pch -osc:include/pragmas/dos_pragmas.h t:dos_pragmas.h 
  176. delete t:dos_pragmas.h
  177.  
  178. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: dtclass_pragmas.h
  179. spatch -pdtclass_pragmas.pch -osc:include/pragmas/dtclass_pragmas.h t:dtclass_pragmas.h 
  180. delete t:dtclass_pragmas.h
  181.  
  182. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: exec_old_pragmas.h
  183. spatch -pexec_old_pragmas.pch -osc:include/pragmas/exec_old_pragmas.h t:exec_old_pragmas.h 
  184. delete t:exec_old_pragmas.h
  185.  
  186. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: exec_pragmas.h
  187. spatch -pexec_pragmas.pch -osc:include/pragmas/exec_pragmas.h t:exec_pragmas.h 
  188. delete t:exec_pragmas.h
  189.  
  190. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: exec_sysbase_pragmas.h
  191. spatch -pexec_sysbase_pragmas.pch -osc:include/pragmas/exec_sysbase_pragmas.h t:exec_sysbase_pragmas.h 
  192. delete t:exec_sysbase_pragmas.h
  193.  
  194. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: expansion_pragmas.h
  195. spatch -pexpansion_pragmas.pch -osc:include/pragmas/expansion_pragmas.h t:expansion_pragmas.h 
  196. delete t:expansion_pragmas.h
  197.  
  198. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: gadtools_pragmas.h
  199. spatch -pgadtools_pragmas.pch -osc:include/pragmas/gadtools_pragmas.h t:gadtools_pragmas.h 
  200. delete t:gadtools_pragmas.h
  201.  
  202. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: graphics_pragmas.h
  203. spatch -pgraphics_pragmas.pch -osc:include/pragmas/graphics_pragmas.h t:graphics_pragmas.h 
  204. delete t:graphics_pragmas.h
  205.  
  206. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: icon_pragmas.h
  207. spatch -picon_pragmas.pch -osc:include/pragmas/icon_pragmas.h t:icon_pragmas.h 
  208. delete t:icon_pragmas.h
  209.  
  210. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: iffparse_pragmas.h
  211. spatch -piffparse_pragmas.pch -osc:include/pragmas/iffparse_pragmas.h t:iffparse_pragmas.h 
  212. delete t:iffparse_pragmas.h
  213.  
  214. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: input_pragmas.h
  215. spatch -pinput_pragmas.pch -osc:include/pragmas/input_pragmas.h t:input_pragmas.h 
  216. delete t:input_pragmas.h
  217.  
  218. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: intuition_pragmas.h
  219. spatch -pintuition_pragmas.pch -osc:include/pragmas/intuition_pragmas.h t:intuition_pragmas.h 
  220. delete t:intuition_pragmas.h
  221.  
  222. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: keymap_pragmas.h
  223. spatch -pkeymap_pragmas.pch -osc:include/pragmas/keymap_pragmas.h t:keymap_pragmas.h 
  224. delete t:keymap_pragmas.h
  225.  
  226. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: layers_pragmas.h
  227. spatch -players_pragmas.pch -osc:include/pragmas/layers_pragmas.h t:layers_pragmas.h 
  228. delete t:layers_pragmas.h
  229.  
  230. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: locale_pragmas.h
  231. spatch -plocale_pragmas.pch -osc:include/pragmas/locale_pragmas.h t:locale_pragmas.h 
  232. delete t:locale_pragmas.h
  233.  
  234. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: lowlevel_pragmas.h
  235. spatch -plowlevel_pragmas.pch -osc:include/pragmas/lowlevel_pragmas.h t:lowlevel_pragmas.h 
  236. delete t:lowlevel_pragmas.h
  237.  
  238. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: mathffp_pragmas.h
  239. spatch -pmathffp_pragmas.pch -osc:include/pragmas/mathffp_pragmas.h t:mathffp_pragmas.h 
  240. delete t:mathffp_pragmas.h
  241.  
  242. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: mathieeedoubbas_pragmas.h
  243. spatch -pmathieeedoubbas_pragmas.pch -osc:include/pragmas/mathieeedoubbas_pragmas.h t:mathieeedoubbas_pragmas.h 
  244. delete t:mathieeedoubbas_pragmas.h
  245.  
  246. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: mathieeedoubtrans_pragmas.h
  247. spatch -pmathieeedoubtrans_pragmas.pch -osc:include/pragmas/mathieeedoubtrans_pragmas.h t:mathieeedoubtrans_pragmas.h 
  248. delete t:mathieeedoubtrans_pragmas.h
  249.  
  250. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: mathieeesingbas_pragmas.h
  251. spatch -pmathieeesingbas_pragmas.pch -osc:include/pragmas/mathieeesingbas_pragmas.h t:mathieeesingbas_pragmas.h 
  252. delete t:mathieeesingbas_pragmas.h
  253.  
  254. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: mathieeesingtrans_pragmas.h
  255. spatch -pmathieeesingtrans_pragmas.pch -osc:include/pragmas/mathieeesingtrans_pragmas.h t:mathieeesingtrans_pragmas.h 
  256. delete t:mathieeesingtrans_pragmas.h
  257.  
  258. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: mathtrans_pragmas.h
  259. spatch -pmathtrans_pragmas.pch -osc:include/pragmas/mathtrans_pragmas.h t:mathtrans_pragmas.h 
  260. delete t:mathtrans_pragmas.h
  261.  
  262. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: misc_pragmas.h
  263. spatch -pmisc_pragmas.pch -osc:include/pragmas/misc_pragmas.h t:misc_pragmas.h 
  264. delete t:misc_pragmas.h
  265.  
  266. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: nonvolatile_pragmas.h
  267. spatch -pnonvolatile_pragmas.pch -osc:include/pragmas/nonvolatile_pragmas.h t:nonvolatile_pragmas.h 
  268. delete t:nonvolatile_pragmas.h
  269.  
  270. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: potgo_pragmas.h
  271. spatch -ppotgo_pragmas.pch -osc:include/pragmas/potgo_pragmas.h t:potgo_pragmas.h 
  272. delete t:potgo_pragmas.h
  273.  
  274. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: ramdrive_pragmas.h
  275. spatch -pramdrive_pragmas.pch -osc:include/pragmas/ramdrive_pragmas.h t:ramdrive_pragmas.h 
  276. delete t:ramdrive_pragmas.h
  277.  
  278. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: realtime_pragmas.h
  279. spatch -prealtime_pragmas.pch -osc:include/pragmas/realtime_pragmas.h t:realtime_pragmas.h 
  280. delete t:realtime_pragmas.h
  281.  
  282. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: rexxsyslib_pragmas.h
  283. spatch -prexxsyslib_pragmas.pch -osc:include/pragmas/rexxsyslib_pragmas.h t:rexxsyslib_pragmas.h 
  284. delete t:rexxsyslib_pragmas.h
  285.  
  286. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: timer_pragmas.h
  287. spatch -ptimer_pragmas.pch -osc:include/pragmas/timer_pragmas.h t:timer_pragmas.h 
  288. delete t:timer_pragmas.h
  289.  
  290. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: translator_pragmas.h
  291. spatch -ptranslator_pragmas.pch -osc:include/pragmas/translator_pragmas.h t:translator_pragmas.h 
  292. delete t:translator_pragmas.h
  293.  
  294. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: utility_pragmas.h
  295. spatch -putility_pragmas.pch -osc:include/pragmas/utility_pragmas.h t:utility_pragmas.h 
  296. delete t:utility_pragmas.h
  297.  
  298. decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: wb_pragmas.h
  299. spatch -pwb_pragmas.pch -osc:include/pragmas/wb_pragmas.h t:wb_pragmas.h 
  300. delete t:wb_pragmas.h
  301.  
  302. echo "Installing INLINE functions to access 68k OS Routines."
  303. failat 100
  304. makedir sc:ppcinclude > nil:
  305. failat 20
  306. copy ppcpragmas sc:ppcinclude/ppcpragmas quiet
  307.  
  308.  
  309. copy c_ppc.o sc:lib
  310. copy end.o   sc:lib
  311.  
  312. copy c_ppc.c sc:source
  313.  
  314.  
  315. echo "Installing read.me file for PPC"
  316. copy read.me sc:read.me.ppc
  317. copy read.me.info sc:read.me.ppc.info
  318.  
  319. assign ppcinclude: sc:ppcinclude
  320.  
  321. echo ""
  322. echo ""
  323. echo ""
  324. echo ""
  325. echo "Please add the following statement to your user-startup file"
  326. echo "assign PPCINCLUDE: sc:ppcinclude"
  327.  
  328. endif
  329.